package com.spring.framework.aop.aspect;

import java.lang.reflect.Method;

/**
 * @author ππ
 * @date 2020-11-18 11:17
 * @desc 声明消息类
 */

public class MyAdvice {
    private Object aspectBean;
    private Method aspectMethod;
    private String throwName;
    public MyAdvice(Object aspectBean, Method aspectMethod) {
        this.aspectBean = aspectBean;
        this.aspectMethod = aspectMethod;
    }

    public Object getAspectBean() {
        return aspectBean;
    }

    public void setAspectBean(Object aspectBean) {
        this.aspectBean = aspectBean;
    }

    public Method getAspectMethod() {
        return aspectMethod;
    }

    public void setAspectMethod(Method aspectMethod) {
        this.aspectMethod = aspectMethod;
    }

    public String getThrowName() {
        return throwName;
    }

    public void setThrowName(String throwName) {
        this.throwName = throwName;
    }
}
